package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CpcEf04Mapper;
import com.ruoyi.system.domain.CpcEf04;
import com.ruoyi.system.service.ICpcEf04Service;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class CpcEf04ServiceImpl implements ICpcEf04Service 
{
    @Autowired
    private CpcEf04Mapper cpcEf04Mapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public CpcEf04 selectCpcEf04ById(Long id)
    {
        return cpcEf04Mapper.selectCpcEf04ById(id);
    }

    @Override
    public CpcEf04 selectCpcEf04ByCId(Long id)
    {
        return cpcEf04Mapper.selectCpcEf04ByCId(id);
    }

    /**
     * 查询列表
     * 
     * @param cpcEf04 
     * @return 
     */
    @Override
    public List<CpcEf04> selectCpcEf04List(CpcEf04 cpcEf04)
    {
        return cpcEf04Mapper.selectCpcEf04List(cpcEf04);
    }

    /**
     * 新增
     * 
     * @param cpcEf04 
     * @return 结果
     */
    @Override
    public int insertCpcEf04(CpcEf04 cpcEf04)
    {
        return cpcEf04Mapper.insertCpcEf04(cpcEf04);
    }

    /**
     * 修改
     * 
     * @param cpcEf04 
     * @return 结果
     */
    @Override
    public int updateCpcEf04(CpcEf04 cpcEf04)
    {
        return cpcEf04Mapper.updateCpcEf04(cpcEf04);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf04ByIds(Long[] ids)
    {
        return cpcEf04Mapper.deleteCpcEf04ByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf04ById(Long id)
    {
        return cpcEf04Mapper.deleteCpcEf04ById(id);
    }
}
